/**
 * Created by xuwei on 2017/7/12.
 * 账户登录与登出相关接口,系统管理相关
 */
import ajax from 'service/ajax'
const url1 = '/APIComplaint/index'
const url2 = '/APIComplaint/ComplaintType'
const url3 = '/APIComplaint/modify'
const url4 = '/APIComplaint/send_sms_msg'
const url5 = '/APIComplaint/detail'
const url6 = '/APIComplaint/deal_complaint'

export default {
    getComplaint: (data = {}) => {
        return ajax({
            url: url1,
            data: data,
            method: 'get'
        })
    },
    getComplaintCategory: (data = {}) => {
        return ajax({
            url: url2,
            data: data,
            method: 'get'
        })
    },
    updateComplaint: (data = {}) => {
        return ajax({
            url: url3,
            data: data,
            method: 'post'
        })
    },
    sendMsg: (data = {}) => {
        return ajax({
            url: url4,
            data: data,
            method: 'post'
        })
    },
    getDetail: (data = {}) => {
        return ajax({
            url: url5,
            data: data
        })
    },
    replyComplaint: (data = {}) => {
        return ajax({
            url: url6,
            data: data,
            method: 'post'
        })
    }
}